<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<html>
<head>
    <title>员工列表</title>
    <%@ include file="/WEB-INF/jsp/public/commons.jspf" %>
</head>
<body>

<div id="Title_bar">
    <div id="Title_bar_Head"> 
        <div id="Title_Head"></div>
        <div id="Title"><!--页面标题-->
            <img border="0" width="13" height="13" src="${pageContext.request.contextPath}/style/images/title_arrow.gif"/>员工管理
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<!-- 查询 -->
	<div id="QueryArea">
		<div style="height: 50px" >
		<%--处理分类查询和模糊查询表单--%>
			<s:form action="user_Searchlist">
				<table >
					<tr>
				    <td>用户名模糊查询：</td>
				     <td>
				     <input type="text" id="noticename" name="Searchname" value="${Searchname}"/>
				     </td>
				<td>
				<input type="IMAGE" src="${pageContext.request.contextPath}/style/blue/images/button/query.PNG"/>
				</td>
					</tr>
				</table>
			</s:form>
		</div>
	</div>

<div id="MainArea">
    <table cellspacing="0" cellpadding="0" class="TableStyle">
       
        <!-- 表头-->
        <thead>
            <tr align=center valign=middle id=TableTitle>
                <td width="100">用户名</td>
                <td width="100">姓名</td>
                <td width="100">性别</td>
                <td width="100">手机号</td>
                <td width="100">邮箱</td>
                 <td width="100">相关操作</td>
            </tr>
        </thead>
        
        <!--显示数据列表-->
        <tbody id="TableData" class="dataContainer" datakey="userList">
        
        <s:iterator value="recordList">
					<tr align="center" valign="middle" class="TableDetail1 template">
					<s:hidden name="id"></s:hidden>
				<td>${username}&nbsp;</td>
                <td>${name}&nbsp;</td>
                 <td>${sex}&nbsp;</td>
                  <td>${phoneNumber}&nbsp;</td>
                   <td>${email}&nbsp;</td>
               
                <td>
                    <s:a action="user_editUI?id=%{id}">修改资料</s:a>
					<s:a action="user_initPassword?id=%{id}" onclick="javascript:return confirm('确定要初始化员工密码为123？')">初始化密码</s:a>
					<s:a
								action="user_delete?id=%{id}" onclick="javascript:return confirm('确定要删除此员工？')">删除员工</s:a>
                </td>
					</tr>
				</s:iterator>
            
        </tbody>
    </table>
    
    
    	<!-- 其他功能超链接 -->
		<div id="TableTail">
			<div id="TableTail_inside">
				<s:a action="user_addUI">
					<img
						src="${pageContext.request.contextPath}/style/images/createNew.png" />
				</s:a>
			</div>
		</div>
	</div>

	<!-- 分页信息 -->
	<%@ include  file="/WEB-INF/jsp/public/pageView.jspf"%>
	<s:form action="user_list"></s:form>
    
    
</body>
</html>
